package com.piggy.logi.sys.mapper;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.piggy.common.core.web.page.BaseMapperPlus;
import com.piggy.logi.sys.domain.LogiWaybillReceivable;

/**
 * 应收管理Mapper接口
 *
 * @author fengxy
 * @date 2023/10/17 21:48
 **/
public interface LogiWaybillReceivableMapper extends BaseMapperPlus<LogiWaybillReceivable> {

    default void removeByUK(Long deptId, Long waybillId) {
        delete(Wrappers.<LogiWaybillReceivable>lambdaQuery()
                .eq(LogiWaybillReceivable::getDeptId, deptId)
                .eq(LogiWaybillReceivable::getWaybillId, waybillId));
    }
}
